package pl.edu.amu.kino.worklog.ui.calendar;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Insets;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenuBar;
import javax.swing.JPanel;
import javax.swing.JToolBar;
import javax.swing.border.BevelBorder;
import javax.swing.border.EmptyBorder;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter.DEFAULT;

public class DayComponent extends JPanel {

	private JLabel title;
	private JLabel description;

	public DayComponent(Color titleColor, Color descriptionColor){
					    
		this.setLayout(new BorderLayout());
		
		title = new JLabel("dzien");
		title.setBackground(titleColor);
		title.setOpaque(true);
		title.setFont(new Font("Courier", Font.BOLD, 18));
		//title.setBorder(BorderFactory.createLineBorder(Color.BLACK));
		title.setBorder(BorderFactory.createMatteBorder(5, 5, 1, 5, Color.BLACK));
		this.add(title, BorderLayout.NORTH);
		

		//String tytul = "zadanie";
		description = new JLabel("zadanie");
		description.setBackground(descriptionColor);
		description.setOpaque(true);
		description.setBorder(BorderFactory.createMatteBorder(2, 5, 2, 5, Color.BLUE));
		this.add(description, BorderLayout.CENTER);
		
	}


}
